Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Proposed solution to #466, adding support for admin pointers #479

Merged
merged 12 commits into from
May 2, 2014

Conversation

Japh
Copy link

@Japh Japh commented Apr 29, 2014

I'd like feedback on this so far, as my first contribution to Stream :)

Resolves #466

if ( options.position && options.position.defer_loading )
$(window).bind( 'load.wp-pointers', setup );
else
$(document).ready( setup );
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should use brackets of the if/else

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@georgestephanis
Copy link

Cue the nominal warning that Pointers isn't meant as an external API, so it may change without warnings in future core releases.

But then, WP_List_Table isn't either, so ymmv. :)

@westonruter
Copy link
Contributor

@georgestephanis true, though since we do most of our development on trunk, I suspect we'll be able to release workarounds for changes to Pointers and WP_List_Table long before a new Core release 😄

@georgestephanis
Copy link

Yup, hence it just being nominal. :)

'WP_Stream_Pointers' => array(
'index.php' => 'wpstream143_extensions',
'toplevel_page_wp_stream' => 'wpstream143_extensions',
'stream_page_wp_stream_settings' => 'wpstream143_extensions',
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Japh Would be good to reference the constant for this instead of hard coding it:

'stream_page_' . WP_Stream_Admin::SETTINGS_PAGE_SLUG

@frankiejarrett
Copy link
Contributor

@Japh Nicely done.

frankiejarrett added a commit that referenced this pull request May 2, 2014
Proposed solution to #466, adding support for admin pointers
@frankiejarrett frankiejarrett merged commit 8078e4e into develop May 2, 2014
@frankiejarrett frankiejarrett deleted the issue-466 branch May 2, 2014 01:16
@Japh
Copy link
Author

Japh commented May 2, 2014

Aw yeah! Thanks :D

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Use Admin Pointers to highlight the adding of new screens to the admin
4 participants